# -*- coding UTF-8 -*-
#:kivy 1.0
# import UnButton ui.unclikableButton.UnButton


<ResultsGeneral>:
    orientation: 'vertical'
    # size: root.size
    word_list: word_list

    BoxLayout:
        height: self.size[0]*0.1
        size_hint_y: None
        orientation: 'horizontal'
        UnButton:
            text: _('Player')
            on_release: root.table_butt_clicked(0)
        UnButton:
            text: _('Explained')
            on_release: root.table_butt_clicked(1)
        UnButton:
            text: _('Guessed')
            on_release: root.table_butt_clicked(2)
        UnButton:
            text: _('Sum')
            on_release: root.table_butt_clicked(3)
    Label:
        size_hint_y: 0.02

    BoxLayout:
        id: box_layout
        size: root.size
        orientation: 'vertical'
        ScrollView:
            do_scroll_x: False
            GridLayout:
                id: word_list
                spacing: 4
                cols: 1
                width: root.width
                size_hint_y: None

<TwoPlayerTableLine>:
    size_hint_y: None
    orientation: 'horizontal'
    BoxLayout:
        orientation: 'vertical'
        BoxLayout:
            orientation: 'horizontal'
            UnButton:
                text: root.name1
            UnButton:
                text: root.described1
            UnButton:
                text: root.guessed1
        BoxLayout:
            orientation: 'horizontal'
            UnButton:
                text: root.name2
            UnButton:
                text: root.described2
            UnButton:
                text: root.guessed2
    UnButton:
        size_hint_x: None
        width: 0.25*root.width
        text: root.summ

<OnePlayerTableLine>:
    size_hint_y: None
    height: self.size[0]*0.1
    orientation: 'horizontal'
    UnButton:
        text: root.name
    UnButton:
        text: root.described
    UnButton:
        text: root.guessed
    UnButton:
        text: root.summ
